﻿using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.Collections.Generic;

namespace ACSTools.DataContracts
{
    [JsonObject]
    public class calqResult
    {
        public calqResult() { }

        [JsonProperty("id")]
        public string id { get; set; }

        [JsonProperty("docId")]
        public string docId { get; set; }

        [JsonProperty("type")]
        public string type { get; set; }

        [JsonObject]
        public class Fields
        {
            public Fields() { }

            [JsonProperty("deviceId")]
            public string deviceId { get; set; }

            [JsonProperty("serialNumber")]
            public string serialNumber { get; set; }

            [JsonProperty("oui")]
            public string oui { get; set; }

            [JsonProperty("subscriberCode")]
            public string subscriberCode { get; set; }

            [JsonProperty("disposition")]
            public string disposition { get; set; }

            [JsonProperty("subscriberName")]
            public string subscriberName { get; set; }

            [JsonProperty("deviceCount")]
            public string deviceCount { get; set; }

            [JsonProperty("manufacturer")]
            public string manufacturer { get; set; }

            [JsonProperty("model")]
            public string model { get; set; }

            [JsonProperty("lastInform", ItemConverterType = typeof(IsoDateTimeConverter))]
            public DateTime lastInform { get; set; }
        }

        [JsonProperty("fields")]
        public Fields fields { get; set; }
    }
}
